package br.upe.portlet.estagio.service;


/**
 * <a href="CursoLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>br.upe.portlet.estagio.service.CursoLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see br.upe.portlet.estagio.service.CursoLocalService
 *
 */
public class CursoLocalServiceUtil {
    private static CursoLocalService _service;

    public static br.upe.portlet.estagio.model.Curso addCurso(
        br.upe.portlet.estagio.model.Curso curso)
        throws com.liferay.portal.SystemException {
        return getService().addCurso(curso);
    }

    public static br.upe.portlet.estagio.model.Curso createCurso(long codigo) {
        return getService().createCurso(codigo);
    }

    public static void deleteCurso(long codigo)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().deleteCurso(codigo);
    }

    public static void deleteCurso(br.upe.portlet.estagio.model.Curso curso)
        throws com.liferay.portal.SystemException {
        getService().deleteCurso(curso);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery, start, end);
    }

    public static br.upe.portlet.estagio.model.Curso getCurso(long codigo)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().getCurso(codigo);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Curso> getCursos(
        int start, int end) throws com.liferay.portal.SystemException {
        return getService().getCursos(start, end);
    }

    public static int getCursosCount()
        throws com.liferay.portal.SystemException {
        return getService().getCursosCount();
    }

    public static br.upe.portlet.estagio.model.Curso updateCurso(
        br.upe.portlet.estagio.model.Curso curso)
        throws com.liferay.portal.SystemException {
        return getService().updateCurso(curso);
    }

    public static br.upe.portlet.estagio.model.Curso addCurso(
        java.lang.String nome, java.lang.String matriculaCoordenador,
        long userId, long companyId, java.util.Date createDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .addCurso(nome, matriculaCoordenador, userId, companyId,
            createDate);
    }

    public static br.upe.portlet.estagio.model.Curso updateCurso(long codigo,
        java.lang.String nome, java.lang.String matriculaCoordenador,
        long userId, long companyId, java.util.Date createDate)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService()
                   .updateCurso(codigo, nome, matriculaCoordenador, userId,
            companyId, createDate);
    }

    public static void updateCoordenador(long codigoCurso,
        java.lang.String matriculaCoordenador)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().updateCoordenador(codigoCurso, matriculaCoordenador);
    }

    public static CursoLocalService getService() {
        if (_service == null) {
            throw new RuntimeException("CursoLocalService is not set");
        }

        return _service;
    }

    public void setService(CursoLocalService service) {
        _service = service;
    }
}
